import { defineConfig } from "vite";
import uni from "@dcloudio/vite-plugin-uni";
import { resolve } from 'path'
// https://vitejs.dev/config/
export default defineConfig({
	plugins: [uni()],
	optimizeDeps: {
		exclude: ['sard-uniapp'],
	},
	resolve: {
		alias: [{ find: '@', replacement: resolve(__dirname, './src') }],
	},
	css: {
		preprocessorOptions: {
			scss: {
				silenceDeprecations: ['legacy-js-api']
			},
		},
	},
});